package com.loongtech.bi.manager.system;

import com.loongtech.bi.support.SpringContextUtil;
import com.loongtech.bi.synch.DataSyncher;
import org.quartz.DisallowConcurrentExecution;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

@DisallowConcurrentExecution
public class SyncServerJobFactory implements Job {

    DataSyncher dataSyncher = SpringContextUtil.getBean(DataSyncher.class);

	public void execute(JobExecutionContext context) throws JobExecutionException {
        dataSyncher.syncData();
	}
}
